package com.ht.medicaltreatment.utils

import android.app.Activity
import android.view.WindowManager

fun Activity.backgroundAlpha(f: Float){
    val lp: WindowManager.LayoutParams = this.getWindow().getAttributes()
    lp.alpha = f
    this.getWindow().setAttributes(lp)
}